{% extends 'layout.html' %}

{% block content %}

    <form method="post" novalidate>
        {% for field in form %}
            {% csrf_token %}
            <div class="form-group" style="position: relative;margin-bottom: 25px">
                <label for="{{ field.id_for_label }}">{{ field.label }}</label>
                {% if field.help_text %}
                    <span style="font-weight: 400;color: #333333;">（{{ field.help_text }}）</span>
                {% endif %}
                {{ field }}
                <span style="color: red;position: absolute;">{{ field.errors.0 }}</span>
            </div>
        {% endfor %}
        <button type="submit" class="btn btn-primary">保 存</button>
    </form>

{% endblock %}
